/**
 * @Author: ls <ls-mac>
 * @Date:   2019-08-08 17:59:20
 * @Last modified by:   ls-mac
 * @Last modified time: 2019-08-16 17:56:22
 */
import { stringify } from 'qs';
import request from '../utils/reqaxios';

export async function page(params) {
  return request({
    url: '/company/page',
    method: 'post',
    data: params,
  });
}

export async function list(params) {
  return request({
    url: '/company/list',
    method: 'post',
    data: params,
  });
}

// 详情 /company/detail
export async function detail(params) {
  return request({
    url: '/company/detail',
    method: 'post',
    data: params,
  });
}

// 新增 /company/add
export async function add(params) {
  return request({
    url: '/company/add',
    method: 'post',
    data: params,
  });
}

// 修改 /company/edit
export async function edit(params) {
  return request({
    url: '/company/edit',
    method: 'post',
    data: params,
  });
}

// 职务 /position/list
export async function positionList(params) {
  return request({
    url: '/position/list',
    method: 'post',
    data: params,
  });
}

// 职位新增和修改 /position/addOrEdit
export async function addOrEdit(params) {
  return request({
    url: '/position/addOrEdit',
    method: 'post',
    data: params,
  });
}

// 职位删除 /position/delete
export async function deleteList(params) {
  return request({
    url: '/position/delete',
    method: 'post',
    data: params,
  });
}

// /companyStore/page 查询企业可体检门店分页列表
export async function companyStorePage(params) {
  return request({
    url: '/companyStore/page',
    method: 'post',
    data: params,
  });
}

// /companyStore/list 查询企业可体检门店列表
export async function getCompanyStoreList(params) {
  return request({
    url: '/companyStore/list',
    method: 'post',
    data: params,
  });
}

// /companyStore/add 分配企业可体检门店
export async function companyStoreAdd(params) {
  return request({
    url: '/companyStore/add',
    method: 'post',
    data: params,
  });
}
